package com.gzx.tjzy.feign;

import com.gzx.tjzy.feign.req.gzxcase.GzxCaseDetailReqDto;
import com.gzx.tjzy.feign.req.gzxcase.GzxCaseReqDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import vip.xiaonuo.common.consts.FeignConstant;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/2/13 10:11
 */
@FeignClient(name = FeignConstant.BIZ_APP, contextId = "TjzyCaseFeign")
public interface GzxCaseFeign {

    /**
     * 案件主表数据同步
     *
     * @param caseReqDtoList
     * @return
     */
    @RequestMapping("/feign/tjzy/case/sync")
    void caseSync(@RequestBody List<GzxCaseReqDto> caseReqDtoList);

    /**
     * 案件详情数据同步
     *
     * @param caseDetailReqDtoList
     */
    @RequestMapping("/feign/tjzy/case/detail/sync")
    void caseDetailSync(@RequestBody List<GzxCaseDetailReqDto> caseDetailReqDtoList);
}
